x86/p2m-pt: tighten conditions of IOMMU mapping updates
authorJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2015 11:40:36 +0000 (13:40 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2015 11:40:36 +0000 (13:40 +0200)
commit660fd65d5578a95ec5eac522128bba23325179eb
tree0e523278bf798bd83b059291bf6f7ef62e971c87
parent33b55dc10342570aad77bd2fa221189df0ebca4e
x86/p2m-pt: tighten conditions of IOMMU mapping updates

Whether the MFN changes does not depend on the new entry being valid
(but solely on the old one), and the need to update or TLB-flush also
depends on permission changes.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-pt.c